<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  
  
  <title>林同学的博客</title>
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  <meta property="og:type" content="website">
<meta property="og:title" content="林同学的博客">
<meta property="og:url" content="https://gitee.com/aLittleLin/index.html">
<meta property="og:site_name" content="林同学的博客">
<meta property="og:locale" content="en_US">
<meta property="article:author" content="John Doe">
<meta name="twitter:card" content="summary">
  
    <link rel="alternate" href="/linblog/atom.xml" title="林同学的博客" type="application/atom+xml">
  
  
    <link rel="shortcut icon" href="/linblog/favicon.png">
  
  
    
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/typeface-source-code-pro@0.0.71/index.min.css">

  
  
<link rel="stylesheet" href="/linblog/css/style.css">

  
    
<link rel="stylesheet" href="/linblog/fancybox/jquery.fancybox.min.css">

  
<meta name="generator" content="Hexo 5.4.0"></head>

<body>
  <div id="container">
    <div id="wrap">
      <header id="header">
  <div id="banner"></div>
  <div id="header-outer" class="outer">
    <div id="header-title" class="inner">
      <h1 id="logo-wrap">
        <a href="/linblog/" id="logo">林同学的博客</a>
      </h1>
      
    </div>
    <div id="header-inner" class="inner">
      <nav id="main-nav">
        <a id="main-nav-toggle" class="nav-icon"></a>
        
          <a class="main-nav-link" href="/linblog/">Home</a>
        
          <a class="main-nav-link" href="/linblog/archives">Archives</a>
        
      </nav>
      <nav id="sub-nav">
        
          <a id="nav-rss-link" class="nav-icon" href="/linblog/atom.xml" title="RSS Feed"></a>
        
        <a id="nav-search-btn" class="nav-icon" title="Search"></a>
      </nav>
      <div id="search-form-wrap">
        <form action="//google.com/search" method="get" accept-charset="UTF-8" class="search-form"><input type="search" name="q" class="search-form-input" placeholder="Search"><button type="submit" class="search-form-submit">&#xF002;</button><input type="hidden" name="sitesearch" value="https://gitee.com/aLittleLin"></form>
      </div>
    </div>
  </div>
</header>

      <div class="outer">
        <section id="main">
  
    <article id="post-如何在gitee上写博客" class="h-entry article article-type-post" itemprop="blogPost" itemscope itemtype="https://schema.org/BlogPosting">
  <div class="article-meta">
    <a href="/linblog/2021/10/11/%E5%A6%82%E4%BD%95%E5%9C%A8gitee%E4%B8%8A%E5%86%99%E5%8D%9A%E5%AE%A2/" class="article-date">
  <time class="dt-published" datetime="2021-10-11T06:19:55.000Z" itemprop="datePublished">2021-10-11</time>
</a>
    
  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 itemprop="name">
      <a class="p-name article-title" href="/linblog/2021/10/11/%E5%A6%82%E4%BD%95%E5%9C%A8gitee%E4%B8%8A%E5%86%99%E5%8D%9A%E5%AE%A2/">如何在gitee上写博客</a>
    </h1>
  

      </header>
    
    <div class="e-content article-entry" itemprop="articleBody">
      
        <h1 id="1-使用Hexo并部署到gitee上"><a href="#1-使用Hexo并部署到gitee上" class="headerlink" title="1. 使用Hexo并部署到gitee上"></a>1. 使用Hexo并部署到gitee上</h1><p><a target="_blank" rel="noopener" href="https://blog.csdn.net/qq_46036214/article/details/110137239">https://blog.csdn.net/qq_46036214/article/details/110137239</a></p>
<h2 id="1-1-修改主题"><a href="#1-1-修改主题" class="headerlink" title="1.1 修改主题"></a>1.1 修改主题</h2><p>上面我们在浏览器里看到的网页样式只是官方默认的主题，不用这个的话可以在Hexo官网中下载别人做好的主题：<a target="_blank" rel="noopener" href="https://hexo.io/themes/">https://hexo.io/themes/</a>  </p>
<h1 id="2-博客流程"><a href="#2-博客流程" class="headerlink" title="2. 博客流程"></a>2. 博客流程</h1><h2 id="2-1-写博客"><a href="#2-1-写博客" class="headerlink" title="2.1 写博客"></a>2.1 写博客</h2><blockquote>
<p>执行 <code>hexo new “名字”</code>，hexo 创建该 md 文件，使用 typora 编辑并保存</p>
</blockquote>
<h2 id="2-2-清缓存-amp-更新渲染"><a href="#2-2-清缓存-amp-更新渲染" class="headerlink" title="2.2 清缓存&amp;更新渲染"></a>2.2 清缓存&amp;更新渲染</h2><blockquote>
<p>执行<code>hexo clean</code>清除缓存，</p>
<p>随后执行<code>hexo g</code>重新渲染静态页面</p>
</blockquote>
<h2 id="2-3-推送到码云"><a href="#2-3-推送到码云" class="headerlink" title="2.3 推送到码云"></a>2.3 推送到码云</h2><blockquote>
<p>执行<code>hexo d</code></p>
</blockquote>
<h2 id="2-4-更新码云的静态页面"><a href="#2-4-更新码云的静态页面" class="headerlink" title="2.4 更新码云的静态页面"></a>2.4 更新码云的静态页面</h2><p><img src="https://img-blog.csdnimg.cn/img_convert/b6e2bb9c649f443524bc19137c680ea0.png" alt="42"></p>
<h2 id="2-5-重新访问网站"><a href="#2-5-重新访问网站" class="headerlink" title="2.5 重新访问网站"></a>2.5 重新访问网站</h2><h1 id="3-PicGo图床设置"><a href="#3-PicGo图床设置" class="headerlink" title="3. PicGo图床设置"></a>3. PicGo图床设置</h1><h2 id="3-1-插入图"><a href="#3-1-插入图" class="headerlink" title="3.1 插入图"></a>3.1 插入图</h2><blockquote>
<p>hexo博客插入图片存在问题，现通过图床来解决插入图片问题</p>
</blockquote>
<h2 id="3-2-下载PicGo"><a href="#3-2-下载PicGo" class="headerlink" title="3.2 下载PicGo"></a>3.2 下载PicGo</h2><p>下载<a target="_blank" rel="noopener" href="https://pan.baidu.com/s/1g9gs3M-nQ_1hkLZy1eFEag">PicGO</a>并安装</p>
<p>链接：<a target="_blank" rel="noopener" href="https://pan.baidu.com/s/1g9gs3M-nQ_1hkLZy1eFEag">https://pan.baidu.com/s/1g9gs3M-nQ_1hkLZy1eFEag</a><br>提取码：pzfy</p>
<blockquote>
<p>安装插件<code>github-plus</code></p>
</blockquote>
<p><img src="https://img-blog.csdnimg.cn/img_convert/dd887cbf7058571bfaeb8ef7864acef4.png" alt="43"></p>
<p><img src="https://img-blog.csdnimg.cn/img_convert/7e93a22a9ad835c2698d714f089dea64.png" alt="44"></p>
<h2 id="3-3-配置图床仓库"><a href="#3-3-配置图床仓库" class="headerlink" title="3.3 配置图床仓库"></a>3.3 配置图床仓库</h2><blockquote>
<p>登录码云，新建仓库，如下设置</p>
</blockquote>
<p><img src="https://img-blog.csdnimg.cn/img_convert/2707b64a3b554c148b81dd508cc6905a.png" alt="45"></p>
<blockquote>
<p>生成 <strong><code>私人令牌</code></strong></p>
</blockquote>
<p><img src="https://img-blog.csdnimg.cn/img_convert/981f8f6e4cc6fa2ebce560fbc051c908.png" alt="46"></p>
<p><img src="https://img-blog.csdnimg.cn/img_convert/b632944c18f81917dd3974e0fc2784da.png" alt="47"></p>
<p><img src="https://img-blog.csdnimg.cn/img_convert/85f11073c064920f3dd599eafaa257d4.png" alt="48"></p>
<blockquote>
<p>输入密码后保存生成的令牌</p>
</blockquote>
<p><img src="https://img-blog.csdnimg.cn/img_convert/8e7589dbc9bd96d2ae24105ea8894820.png" alt="49"></p>
<h2 id="3-4-置PicGo"><a href="#3-4-置PicGo" class="headerlink" title="3.4 置PicGo"></a>3.4 置PicGo</h2><p><img src="https://img-blog.csdnimg.cn/img_convert/a2abc4ad31972288cf5427ce74b81496.png" alt="50"></p>
<p><img src="https://img-blog.csdnimg.cn/img_convert/f3d3aa937e380e4ee15289be8024476c.png" alt="51"></p>
<p><img src="https://img-blog.csdnimg.cn/img_convert/d6270a48d0c29d9ef390082e482e53d7.png" alt="52"></p>
<blockquote>
<p>上传图片测试，截图后选择 **<code>剪切板图片</code>**，查看软件返回结果</p>
</blockquote>
<p><img src="https://img-blog.csdnimg.cn/img_convert/39d4f4f79980a4ff13b58a60571d4e5d.png" alt="53"></p>
<p><img src="https://img-blog.csdnimg.cn/img_convert/e424d090da070751656892e5e60cc590.png" alt="img"></p>
<p><img src="https://img-blog.csdnimg.cn/img_convert/c952628e82ba83e9f8e38175d381dc7e.png" alt="55"></p>
<h2 id="3-5-配置typora"><a href="#3-5-配置typora" class="headerlink" title="3.5 配置typora"></a>3.5 配置typora</h2><blockquote>
<p>进入 typora 选择-&gt;偏好设置-&gt;图像</p>
</blockquote>
<p><img src="https://img-blog.csdnimg.cn/img_convert/067c8a8be2ee29f25699ffbd91a628f0.png" alt="56"></p>
<blockquote>
<p>验证结果为：</p>
</blockquote>
<p><img src="https://img-blog.csdnimg.cn/img_convert/1b3686155ed187d2616365ce9d7e8242.png" alt="啥"></p>
<blockquote>
<p>以后往 typora 中插入图片，图片会自动上传到 gitee 图床，并且图片地址自动改为图床地址</p>
</blockquote>
<p><img src="https://img-blog.csdnimg.cn/img_convert/c586d51a3edef4432116d3c2c8d29d71.png" alt="58"></p>
<h2 id=""><a href="#" class="headerlink" title=""></a></h2>
      
    </div>
    <footer class="article-footer">
      <a data-url="https://gitee.com/aLittleLin/2021/10/11/%E5%A6%82%E4%BD%95%E5%9C%A8gitee%E4%B8%8A%E5%86%99%E5%8D%9A%E5%AE%A2/" data-id="ckum9r69n0000s0nyax5z5f09" data-title="如何在gitee上写博客" class="article-share-link">Share</a>
      
      
      
    </footer>
  </div>
  
</article>



  
    <article id="post-hello-world" class="h-entry article article-type-post" itemprop="blogPost" itemscope itemtype="https://schema.org/BlogPosting">
  <div class="article-meta">
    <a href="/linblog/2021/10/11/hello-world/" class="article-date">
  <time class="dt-published" datetime="2021-10-11T06:13:27.296Z" itemprop="datePublished">2021-10-11</time>
</a>
    
  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 itemprop="name">
      <a class="p-name article-title" href="/linblog/2021/10/11/hello-world/">Hello World</a>
    </h1>
  

      </header>
    
    <div class="e-content article-entry" itemprop="articleBody">
      
        <p>Welcome to <a target="_blank" rel="noopener" href="https://hexo.io/">Hexo</a>! This is your very first post. Check <a target="_blank" rel="noopener" href="https://hexo.io/docs/">documentation</a> for more info. If you get any problems when using Hexo, you can find the answer in <a target="_blank" rel="noopener" href="https://hexo.io/docs/troubleshooting.html">troubleshooting</a> or you can ask me on <a target="_blank" rel="noopener" href="https://github.com/hexojs/hexo/issues">GitHub</a>.</p>
<h2 id="Quick-Start"><a href="#Quick-Start" class="headerlink" title="Quick Start"></a>Quick Start</h2><h3 id="Create-a-new-post"><a href="#Create-a-new-post" class="headerlink" title="Create a new post"></a>Create a new post</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo new <span class="string">&quot;My New Post&quot;</span></span><br></pre></td></tr></table></figure>

<p>More info: <a target="_blank" rel="noopener" href="https://hexo.io/docs/writing.html">Writing</a></p>
<h3 id="Run-server"><a href="#Run-server" class="headerlink" title="Run server"></a>Run server</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo server</span><br></pre></td></tr></table></figure>

<p>More info: <a target="_blank" rel="noopener" href="https://hexo.io/docs/server.html">Server</a></p>
<h3 id="Generate-static-files"><a href="#Generate-static-files" class="headerlink" title="Generate static files"></a>Generate static files</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo generate</span><br></pre></td></tr></table></figure>

<p>More info: <a target="_blank" rel="noopener" href="https://hexo.io/docs/generating.html">Generating</a></p>
<h3 id="Deploy-to-remote-sites"><a href="#Deploy-to-remote-sites" class="headerlink" title="Deploy to remote sites"></a>Deploy to remote sites</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo deploy</span><br></pre></td></tr></table></figure>

<p>More info: <a target="_blank" rel="noopener" href="https://hexo.io/docs/one-command-deployment.html">Deployment</a></p>

      
    </div>
    <footer class="article-footer">
      <a data-url="https://gitee.com/aLittleLin/2021/10/11/hello-world/" data-id="ckum9fn9600009cny4x784e38" data-title="Hello World" class="article-share-link">Share</a>
      
      
      
    </footer>
  </div>
  
</article>



  


</section>
        
          <aside id="sidebar">
  
    

  
    

  
    
  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Archives</h3>
    <div class="widget">
      <ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="/linblog/archives/2021/10/">October 2021</a></li></ul>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Recent Posts</h3>
    <div class="widget">
      <ul>
        
          <li>
            <a href="/linblog/2021/10/11/%E5%A6%82%E4%BD%95%E5%9C%A8gitee%E4%B8%8A%E5%86%99%E5%8D%9A%E5%AE%A2/">如何在gitee上写博客</a>
          </li>
        
          <li>
            <a href="/linblog/2021/10/11/hello-world/">Hello World</a>
          </li>
        
      </ul>
    </div>
  </div>

  
</aside>
        
      </div>
      <footer id="footer">
  
  <div class="outer">
    <div id="footer-info" class="inner">
      
      &copy; 2021 John Doe<br>
      Powered by <a href="https://hexo.io/" target="_blank">Hexo</a>
    </div>
  </div>
</footer>

    </div>
    <nav id="mobile-nav">
  
    <a href="/linblog/" class="mobile-nav-link">Home</a>
  
    <a href="/linblog/archives" class="mobile-nav-link">Archives</a>
  
</nav>
    


<script src="/linblog/js/jquery-3.4.1.min.js"></script>



  
<script src="/linblog/fancybox/jquery.fancybox.min.js"></script>




<script src="/linblog/js/script.js"></script>





  </div>
</body>
</html>